WooCommerce\Square\Gateway\Digital_Wallet D

Total Complexity 231
Dependencies 10
Dependents 1
Total lines 1,275
Lines of code 738
Logical lines of code 391
Comment lines 355
Methods 33
Properties 4

Methods 33

Method Rating Maintainability Complexity Lines of code
ajax_recalculate_totals()
B
35 18 83
init()
A
51 17 21
build_payment_request_line_items()
A
41 14 54
get_product_payment_request()
A
42 12 47
apple_pay_domain_registration()
A
50 12 25
build_payment_request()
A
41 9 53
allowed_for_product_page()
A
52 11 22
get_payment_request_for_context()
A
50 10 27
register_apple_pay_domain()
A
47 9 33
allowed_for_cart()
A
56 10 15
is_available_for_page()
A
58 10 14
ajax_get_payment_request()
A
52 9 21
get_state_code_by_name()
A
54 9 21
check_apple_pay_verification_file()
S
51 7 27
filter_checkout_fields()
S
59 7 13
filter_posted_data()
S
61 7 12
__construct()
S
55 6 17
calculate_shipping()
S
48 5 32
admin_notices()
S
50 5 31
get_current_page()
S
64 7 8
enqueue_scripts()
S
46 4 37
ajax_add_to_cart()
S
54 5 18
render_button()
S
51 3 26
get_hidden_button_options()
S
67 4 7
is_available()
S
70 4 6
ajax_process_checkout()
S
64 3 10
update_shipping_method()
S
65 3 9
get_option_is_apple_pay_enabled()
S
69 3 6
get_cart_totals()
S
61 2 12
apple_pay_verification_file_location()
S
76 2 3
is_digital_wallet_enabled()
S
78 2 3
supported_product_types()
S
62 1 14
get_available_pages()
S
65 1 11